//MIT License
//Copyright (c) 2024 nuaazgg, Nanjing University of Aeronautics and Astronautics(NUAA)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// using UnityEngine.SceneManagement;

public class DestoryUI : MonoBehaviour
{
    public GameObject targetObject;
    public GameObject ActionObject;
    private bool isActive = false;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        isActive = targetObject.activeSelf;
        if (isActive == true)
        {
            ActionObject.SetActive(false);
        }
    }
}
